<?php

namespace App\Http\Middleware;

use Closure;

class SettingGuard
{
	/**
	 * Handle an incoming request.
	 * @param         $request
	 * @param Closure $next
	 * @param         $target_guard
	 * @return mixed
	 */
    public function handle($request, Closure $next, $target_guard)
    {
    	auth()->shouldUse($target_guard);
        return $next($request);
    }
}
